<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>使用position为相对布局的效果</title>
		<style type="text/css">
			*{
				margin: 0;
				padding: 0;
			}
			#d1,#d2,#d3{
				height: 100px;
				width: 400px;
				border: 1px dashed greenyellow;
				margin: 50px 100px;
			}
			#d1{
				background-color: red;
			}
			#d2{
				background-color: darkcyan;
				position: relative;
				left:30px;
				top: 120px;
			}
			#d3{
				background-color: gold;
			}
		</style>
	</head>
	<body>
		<div id="d1"></div>
		<div id="d2"></div>
		<div id="d3"></div>
	</body>
</html>
